import instance from '@/utils/request';

//仓库类型（下拉框）
export function GetWarehousBox(data) {
    return instance.request({
        url: "api/ILocations/GetWarehousBox",
        method: "post",
        data
    })
}
//库位管理列表
export function GetLocationDtoPes(data) {
    return instance.request({
        url: "api/ILocations/GetLocationDtoPes",
        method: "post",
        data
    })
}
//添加库位
export function AddLocationAsync(data) {
    return instance.request({
        url: "api/ILocations/AddLocation",
        method: "post",
        data
    })
}
//反填库位1
export function RackLocation(data) {
    return instance.request({
        url: "api/ILocations/RackLocation",
        method: "post",
        data
    })
}
//修改库位
export function UpdateLocation(data) {
    return instance.request({
        url: "api/ILocations/UpdateLocation",
        method: "post",
        data
    })
}
//修改库位状态
export function UpdateLocationIsDisable(data) {
    return instance.request({
        url: "api/ILocations/UpdateLocationIsDisable",
        method: "post",
        data
    })
}
//库位删除
export function DeleteLocationIsDisable(data) {
    return instance.request({
        url: "api/ILocations/DeleteLocationIsDisable",
        method: "post",
        data
    })
}
//批量删除库位
export function DeletesLocationIsDisable(data) {
    return instance.request({
        url: "api/ILocations/DeletesLocationIsDisable",
        method: "post",
        data
    })
}